import React, { Component } from 'react';
import "./style.scss"
class List extends Component {
    render() {
        const {list}=this.props
        return (
            <div className='listWrap'>
                {
                    list.length>0&&list.map((v,i)=>{
                        return(
                            <dl key={v.id}>
                                <dt><img src={v.img} alt="" /></dt>
                                <dd>
                                    <h3>{v.title}</h3>
                                    <p>{v.desc}</p>
                                    <p className='price'>￥{v.price}万</p>
                                </dd>
                            </dl>
                        )
                    })
                }
            </div>
        );
    }
}

export default List;
